package com.yzh.oop6.teacher;

import com.yzh.oop6.teacher.OuterClass.*;

public class Test {
    public static void main(String[] args) {
        OuterClass oc = new OuterClass();
        oc.methodOut2();

        //直接创建一个外部类的对象
        //OuterClass.InnerClass innerClass = new OuterClass().new InnerClass();
//        OuterClass oc2 = new OuterClass();
//        OuterClass.InnerClass ic = oc2.new InnerClass();
//        ic.methodInner();

        //OuterClass.InnerClass innerClass = new OuterClass.InnerClass();
        InnerClass innerClass = new InnerClass();
        innerClass.methodInner();
    }
}
